package initialize

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"github.com/flipped-aurora/gin-vue-admin/server/model/activity"
	"github.com/flipped-aurora/gin-vue-admin/server/model/integral"
	"github.com/flipped-aurora/gin-vue-admin/server/model/integral_record"
	"github.com/flipped-aurora/gin-vue-admin/server/model/spikes_activity"
	"github.com/flipped-aurora/gin-vue-admin/server/model/spikes_goods_sku"
)

func bizModel() error {
	db := global.GVA_DB
	err := db.AutoMigrate(spikes_activity.SpikesActivities{}, spikes_goods_sku.SpikesGoodsSkus{}, spikes_activity.SpikesActivities{}, activity.SpikesActivities{}, spikes_activity.SpikesActivities{}, spikes_goods_sku.SpikesGoodsSkus{}, Integral.Integrals{}, integral_record.IntegralRecords{})
	if err != nil {
		return err
	}
	return nil
}
